package com.gr.labbackend.controller.exhibit.events;

import com.alibaba.fastjson.JSONObject;
import com.gr.labbackend.service.exhibit.events.GetEventInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetEventInfoController {

    @Autowired
    private GetEventInfoService getEventInfoService;

    @GetMapping("/api/exhibit/event/get-record-info")
    public JSONObject getEventInfo(@RequestParam int page) {
        return getEventInfoService.getEventInfo(page);
    }

}
